package com.sdy.supermarket.biz.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzq
 * @since 2019-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class GsUserRes extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 部门id
     */
    private Integer deptId;

    /**
     * 资源id
     */
    private Integer resId;

    /**
     * 常用 0-否 1-是
     */
    private Integer commonUse;

    /**
     * 来源
     */
    private String srcDeptName;

    /**
     * 状态 1-未生效 2-已生效 3-已过期
     */
    private Integer state;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date updateTime;
    
    @TableField(exist = false)
    private GsRes gsRes;

}
